Page({
  /**
   * 页面的初始数据
   */
  data: {
    content: {
      id: 0 as number,
      title: '' as string,
      content: '' as string,
      people: '' as string,
      time: '' as string,
    },
    id: 0 as number,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options: any) {
    var id = options.index;
    let data = options.data || "";
    let details = JSON.parse(data);
    this.setData({
      id: id,
      content: details
    });
  },

  //返回操作
  onClickLeft() {
    wx.navigateBack();
  },
})